CC = gcc
CFLAGS = -g -m64 -I/usr/include/mpi -I/usr/include/petsc 
CLIBS = -lpetsc -lpetscmat -lpetscvec -lpetscksp 

ifeq ($(AMDAHL), true)
CLIBS := $(CLIBS) -lcblas
endif 

CMACROS = 
LD = ld
RM = rm -f
CD = cd
PETSCPREFIX = petsc

all: solve.c
	$(CC) $(CFLAGS) $(CMACROS) $(CLIBS) solve.c -o solve

clean:
	$(RM) *.o *~ *.output solve
